<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="contextPath"
	value="${pageContext.servletContext.contextPath}" />
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>geselecteerde sausen</title>
<link rel="stylesheet" href="${contextPath}/styles/default.css" />
</head>
<body>
	<c:import url="/WEB-INF/JSP/menu.jsp" />
	<h1>De geselecteerde sausen</h1>
	<c:url value="/saus/ingredient" var="url" />
	<form method="get" action="${url}">
		<label><h2>Ingredient:</h2> <input name="ingredient"
			value="${param.ingredient}"> <span class="fout">${fouten.iets}</span></label>
		<input type="submit" value="zoeken">
	</form>
	
	<c:if test="${not empty sausen}">
	<ul>
	<c:forEach var="saus" items="${sausen}">
	<li>${saus.naam}
	<ol>
	<c:forEach var="ingredient" items="${saus.ingredienten}">
	<li>${ingredient}</li>
	</c:forEach>
	</ol>
	</li>
	</c:forEach>
	</ul>
	</c:if>
	<c:if test = "${not empty fouten.nietgevonden}">
	${fouten.nietgevonden}</c:if>
</body>
</html>